package com.lm.activiti.boot.mq;

import com.lm.activiti.boot.dto.Animal;
import org.apache.camel.CamelContext;
import org.apache.camel.builder.RouteBuilder;
import org.apache.camel.impl.DefaultCamelContext;

/**
 * @author lm_jcf
 * @date 2020/9/3 14:51
 */
public class ApacheCamel {

    public static void main(String[] args) throws Exception {

        CamelContext camelContext = new DefaultCamelContext();

        camelContext.addRoutes(
        new RouteBuilder(){

            @Override
            public void configure() throws Exception {
//                from("activemq:tcp://192.168.122.1:61616").to("");

                from("file://{{user.home}}/Desktop/下载.png").to("file://{{user.home}}/Desktop/out.txt");

            }
        });

    }
}
